a503f841e4e1d2340723fecf9a53875578e0d573,plugins/git4idea/src/git4idea/commands/GitHttpGuiAuthenticator.java,GitHttpGuiAuthenticator,notNullizeUrl,#String#,195
Before Change
@NotNull
private String notNullizeUrl(@Nullable String url) {
if (StringUtil.isEmptyOrSpaces(url)) {
// if Git doesn't specify the URL in the username/password query, we use the url from the Git command
// We only take the host, to avoid entering the same password for different repositories on the same host.
return getHost(myUrlsFromCommand);
}
return url;
}
@NotNull
After Change
*/
@NotNull
private String getUnifiedUrl(@Nullable String urlFromGit) {
return changeHttpsToHttp(StringUtil.isEmptyOrSpaces(urlFromGit) ? findPresetHttpUrl() : urlFromGit);
}
@NotNull